{include file="header.html"}

<script type="text/javascript">
//<!CDATA[
$(function(){
  
    
    $("#search").click(function(){
    	$("#act").val("index");

    	$("#form1").submit();
    });
});
//]]>
</script>

<div id="rightTop">
	<p>整车货单</p>
	<ul class="subnav">
		<li><span>{$lang.manage}</span></li>
		<li><a class="btn1" href="index.php?app=goods_normal&amp;act=add">{$lang.add}</a>
		</li>
	</ul>
</div>
<div class="mrightTop">
	<div class="fontl">
		<form method="get">
			<div class="left">

				<input type="hidden" name="app" value="goods_normal" /> <input
					type="hidden" name="act" value="index" /> 货单编码: <input
					class="queryInput" type="text" name="g_code"
					value="{$smarty.get.g_code}" />  货主: <input
					class="queryInput" type="text" name="g_owner"
					value="{$smarty.get.g_owner}" /> <input type="submit"
					class="formbtn" value="{$lang.query}" />

			</div>
		</form>
	</div>
	<div class="fontr">{include file=page.top.html}</div>
	<div class="clear:both;"></div>
</div>
<div class="tdare">
	<table width="100%" cellspacing="0" class="dataTable">
		<!--{if $auth}-->
		<tr class="tatr1">
			<td width="20" class="firstCell"><input type="checkbox"
				class="checkall" /></td>

			<td>货单流水</td>
			<td align="left">货主</td>
			<td>货单电话</td>
			<td>装货地</td>
			<td>卸货地</td>
			<td>收货人</td>
			<td>发货人</td>
			<td>下单人</td>
			<td>下单时间</td>
			<td>操作</td>
		</tr>
		<!--{/if}-->
		<!--{foreach from=$auth item=w}-->
		<tr class="tatr2">
			<td class="firstCell"><input type="checkbox" class="checkitem"
				value="{$w.g_tid}" />
			</td>

			<td>{$w.g_code}</td>
			<td>{$w.g_owner|escape}</td>
			<td>{$w.g_owner_tel}</td>
			<td>{$w.g_loading_place}</td>
			<td>{$w.g_unloading_place}</td>
			<td>{$w.g_consignee}</td>
			<td>{$w.g_consignor}</td>
		
			<td>{$w.user_name}</td>
	        <td>{if $w.g_opdate}{$w.g_opdate|date:Y-m-d H:i}{else}{/if}</td>
			<td>
				{if !$w.ws_tid}
				<a href="index.php?app=goods_normal&amp;act=edit&amp;id={$w.g_tid}">编辑</a>
			    <a name="drop" href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=goods_normal&amp;act=drop&amp;id={$w.g_tid}');">{$lang.drop}</a>
				{else}
					<a href="index.php?app=goods_normal&amp;act=edit&amp;id={$w.g_tid}">查看</a>
				{/if}
		</tr>
		<!--{foreachelse}-->
		<tr class="no_data">
			<td colspan="7">{$lang.no_data}</td>
		</tr>
		<!--{/foreach}-->
	</table>
	<!--{if $auth}-->
	<div id="dataFuncs">
		<div class="pageLinks">{include file=page.bottom.html}</div>
		<div id="batchAction" class="left paddingT15"
			style="padding-top: 10px;">
			&nbsp;&nbsp; <input class="formbtn batchButton" type="button"
				value="{$lang.drop}" name="id"
				uri="index.php?app=goods_normal&act=drop"
				presubmit="confirm('{$lang.drop_confirm}');" /> &nbsp;&nbsp;
		</div>
		<div class="clear:both;"></div>
	</div>
	<div class="clear"></div>
	<!--{/if}-->
</div>
{include file="footer.html"}
